Skip to content

feat: rate limiting #1290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jul 4, 2022
Merged

feat: rate limiting #1290

merged 26 commits into from
Jul 4, 2022

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Jun 16, 2022

No description provided.

@csviri csviri changed the base branch from main to next June 16, 2022 12:30
@csviri csviri self-assigned this Jun 16, 2022
@csviri csviri marked this pull request as ready for review June 17, 2022 14:42
@csviri csviri requested a review from metacosm June 17, 2022 14:42
@csviri csviri force-pushed the next branch 2 times, most recently from b8b6b02 to 93c2b1b Compare June 17, 2022 15:09
@csviri csviri changed the title Rate limiting feat: rate limiting Jun 22, 2022
@@ -69,6 +69,9 @@
ReconciliationMaxInterval reconciliationMaxInterval() default @ReconciliationMaxInterval(
interval = 10);


RateLimit rateLimit() default @RateLimit;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be fixed as this doesn't make any sense if users can provide their own RateLimiter implementations…

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is that some can configure basic rate limit, what is usuabble in most of the cases. If the default implementation does not fit, configuration overrride still can be used.

Note that this is empty by default, so there is no default rate limiter.

Copy link
Collaborator

@metacosm metacosm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 62 Code Smells

67.5% 67.5% Coverage
0.3% 0.3% Duplication

@csviri csviri merged commit 36f1020 into next Jul 4, 2022
@csviri csviri deleted the rate-limiting branch July 4, 2022 15:12
csviri added a commit that referenced this pull request Jul 13, 2022
csviri added a commit that referenced this pull request Jul 13, 2022
csviri added a commit that referenced this pull request Jul 13, 2022
csviri added a commit that referenced this pull request Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid looping with two mutually exclusive desired state Implement Rate Limiting of Reconciliation
2 participants